<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>添加门店</title>
    <!-- Bootstrap -->
    <link href="../assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="fonts/iconfont.css" rel="stylesheet">
    <link href="../assets/css/style.css" rel="stylesheet" />
    <link href="../assets/css/motai.css" rel="stylesheet" />
    <link href="../assets/css/tabletable.css" rel="stylesheet" />
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
		      <script src="../assets/js/html5shiv.min.js"></script>
		      <script src="../assets/js/respond.min.js"></script>
		      <![endif]-->
  </head>

  <body>
    <!--内容区域-->
    <div class="content">
      <div class="content-header col-md-12">
        <div class="con-header">
          <div class="col-md-6 col-sm-6 col-xs-6">
            <button type="button" class="btn btn-info btn-header" data-toggle="modal" data-target="#myModal">添加+</button>
          </div>
        </div>
      </div>

    </div>

    <!-- 模态框（Modal） -->

    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">

          <!--添加评价项 -->
          <div class="modal-header">
            <div class="zuo-close" data-dismiss="modal">
              <i class="iconfont icon-o1"></i>
            </div>
            <h5 class="modal-title" id="myModalLabel"><i class="iconfont icon-shangcheng"></i>&nbsp;添加门店</h5>
          </div>
          <div class="modal-body">
            <div class="row">

              <form class="form-horizontal" role="form">

                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label"><span class="bitian">*</span>门店名称</label>
                  <div class="col-sm-8">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入门店名称">
                  </div>
                </div>

                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label"><span class="bitian">*</span>简&emsp;&emsp;称</label>
                  <div class="col-sm-8">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入简称">
                  </div>
                </div>

                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label">电&emsp;&emsp;话</label>
                  <div class="col-sm-8">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入电话">
                  </div>
                </div>

                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label">Ｅｍａｉｌ</label>
                  <div class="col-sm-7">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入email">
                  </div>
                </div>
                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label">地址</label>
                  <div class="col-sm-8">
                    <input type="text" class="form-control" id="firstname" placeholder="请输入地址">
                  </div>
                </div>
                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label">定位</label>
                  <div class="col-sm-8">
                    <button type="button" class="weixin-and-dingwei file_img_button">
		  										地图
		  									</button>
                  </div>
                </div>

                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label"><span class="bitian">*</span>登陆默认密码</label>
                  <div class="col-sm-8">
                    <input type="text" class="form-control" id="firstname" placeholder="默认随机唯一性质密码(10位)" readonly="true">
                  </div>
                </div>

                <!-- 关联微信 -->
                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label">微信号</label>
                  <div class="col-sm-8">
                    <button type="button" class="weixin-and-dingwei file_img_button" data-toggle="modal" data-target="#wechat-list" data-dismiss="modal">
		  										关联微信
		  									</button>
                  </div>
                </div>

                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label"><span class="bitian">*</span>图&emsp;&emsp;片</label>
                  <div class="col-sm-8">
                    <div class="file_div_img">
                      <img src="../assets/images/wutu.png">
                    </div>
                    <button class="file_img_button border-radius5">
		  										<input type="file" class="file_img_input">上传图片
		  									</button>

                  </div>
                </div>

                <div class="form-group">
                  <label for="firstname" class="col-sm-3 control-label"><span class="bitian">*</span>描述</label>
                  <div class="col-sm-8">
                    <textarea type="text" class="form-control textarea_type" id="firstname" placeholder="请输入要填写的内容"></textarea>

                  </div>
                </div>
              </form>
            </div>
          </div>
          <div class="modal-footer white_bg bd_padding">
            <button type="button" class="btn save">保存</button>
            <button type="button" class="btn  close_motai" data-dismiss="modal">关闭</button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal -->
    </div>
    <!--微信列表-->
    <div class="modal fade" id="wechat-list" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header sucaiku-header">
            <div class="zuo-close" data-dismiss="modal">
              <i class="iconfont icon-o1"></i>
            </div>
            <h5 class="modal-title" id="myModalLabel"><i class="iconfont icon-shangcheng"></i>&nbsp;微信列表</h5>
          </div>
          <div class="modal-body modal-body-padding-10 ">
            <!-- 头部 -->
            <div class="content_serach row">
        <input type="text" class="form-control serach_input" placeholder="请输入名称">
        
        <button type="button" class="btn btn-info serach_btn">查询</button>
      </div>
            <div class="wechat-list-table mt20">
              <div class="table-responsive ckmx-table-hei">
                <table class="table ckmx-table">
                  <thead>
                    <tr>
                      <th class="firstth choice" valign="middle">
                        <label class="radio disables"><input type="radio" name="radio" disabled><i></i></label>
                      </th>
                      <th class="secondta">昵称</th>
                      <th>电话</th>
                      <th>最后交互</th>
                      <th>会员等级</th>
                    </tr>
                  </thead>
                  <tbody class="border-lf mytable ">
                    <tr>
                      <td class="choice firsttd bgcolor-fff" valign="middle">
                        <label class="radio"><input type="radio" name="radio" checked><i></i></label>
                      </td>
                      <td class="secondta"><img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="wechat-touxiang">西瓜霜</td>
                      <td>13546328975</td>
                      <td>2016-11-12 19:09:08</td>
                      <td>1</td>
                    </tr>
                    <tr>
                      <td class="choice firsttd bgcolor-fff" valign="middle">
                        <label class="radio"><input type="radio" name="radio" checked><i></i></label>
                      </td>
                      <td class="secondta"><img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="wechat-touxiang">西瓜霜</td>
                      <td>13546328975</td>
                      <td>2016-11-12 19:09:08</td>
                      <td>1</td>
                    </tr>
                    <tr>
                      <td class="choice firsttd bgcolor-fff" valign="middle">
                        <label class="radio"><input type="radio" name="radio" checked><i></i></label>
                      </td>
                      <td class="secondta"><img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="wechat-touxiang">西瓜霜</td>
                      <td>13546328975</td>
                      <td>2016-11-12 19:09:08</td>
                      <td>1</td>
                    </tr>
                    <tr>
                      <td class="choice firsttd bgcolor-fff" valign="middle">
                        <label class="radio"><input type="radio" name="radio" checked><i></i></label>
                      </td>
                      <td class="secondta"><img src="../assets/images/20150805133816_X8zCQ.thumb.700_0.jpeg" class="wechat-touxiang">西瓜霜</td>
                      <td>13546328975</td>
                      <td>2016-11-12 19:09:08</td>
                      <td>1</td>
                    </tr>
                  </tbody>
                </table>
              </div>

            </div>
            <div style="height: 30px;"></div>
            <div class="modal-footer white_bg bd_padding">
              <button type="button" class="btn  close_motai colo_bg" data-dismiss="modal" data-toggle="modal" data-target="#myModal">保存</button>
              <button type="button" class="btn  close_motai" data-dismiss="modal" data-toggle="modal" data-target="#myModal">关闭</button>
            </div>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal -->
    </div>
    <script src="../assets/js/jquery.min.js"></script>
    <script src="../assets/js/bootstrap.min.js"></script>
    <script src="../assets/js/main.js"></script>
    <script type="text/javascript">
      //给第一列高度
      $('#myModal').modal({
        firstTrHeight();
      })

      function firstTrHeight() {
        for(var i = $(".mytable tr").length - 1; i >= 0; i--) {
          var trht = $(".mytable tr")[i].offsetHeight
          var domtr = $(".mytable tr")[i];
          // 有30px的边距
          $(domtr).children('td').height(trht - 30);
          $(domtr).children('.firsttd').css('line-height', trht - 30 + 'px');
        };
      }
    </script>

  </body>

</html>